package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.itheima.health.pojo.Member;

import java.util.List;
import java.util.Map;

/**
 * @ClassName CheckItemDao
 * @Description TODO
 * @Author ly
 * @Company 深圳黑马程序员
 * @Date 2019/10/13 9:53
 * @Version V1.0
 */
public interface MemberDao {

    Member findMemberByTelephone(String telephone);

    void add(Member member);

    Integer findMemberCountByRegTime(String regTime);

    Integer findTodayNewMember(String date);

    Integer findTotalMember();

    Integer findRegTimeAfterDateNewMember(String date);

    /*
    * actor:zhangkai
    * 10-27
    * */
    //会员数量统计,性别划分
    List<Map<String, Object>> findBySexCount();
    //会员数量统计,年龄段划分
    List<Map<String, Object>> findByAgeCount();

    Integer findIncreasedMemberCount(String monthsList);

    Page<Member> findPage(String queryString);

    Member findById(Integer id);

    void edit(Member member);

    void deleteById(Integer id);
}
